﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Snowdreamist.Web.Page
{
    public interface IPage : IDisposable
    {
        Uri Address { get; }

        string Identity { get; }

        bool IsAutoRefresh { get; }

        TimeSpan RefreshInterval { get; }

        DateTime LastRefreshTime { get; }

        IPageParser PageParser { get; }

        void Refresh();

        void RefreshAsync();

        object Content { get; }

        event EventHandler<RefreshedEventArgs> Refreshed;
    }
}